﻿using Abp.AutoMapper;
using Akso.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Akso.Schools.Dto
{
    /// <summary>
    /// 新增、编辑页面显示数据时的Dto对象，可以被其它Dto使用。
    /// </summary>
    [AutoMap(typeof(School))]
    public class SchoolEditDto
    {
        public Guid? Id { get; set; }
        [Required]
        [MaxLength(School.MaxNameLength)]
        public virtual string SchoolName { get; set; }
        [MaxLength(School.MaxCodeLength)]
        public virtual string SchoolCode { get; set; }
        /// <summary>
        /// 组织类型 1：学校 2：部门
        /// </summary>
        public virtual int OrgType { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public virtual string OfficePhone { get; set; }
        /// <summary>
        /// 父节点
        /// </summary>
        public Guid? ParentId { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        [MaxLength(School.MaxManagerLength)]
        public virtual string Manager { get; set; }
        /// <summary>
        /// 职能ID
        /// </summary>
        public Guid? FunctionId { get; set; }
        /// <summary>
        /// 职能名称
        /// </summary>
        [MaxLength(School.MaxNameLength)]
        public virtual string FunctionName { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [MaxLength(School.MaxAddressLength)]
        public virtual string Address { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [MaxLength(School.MaxRemarkLength)]
        public virtual string Remark { get; set; }
    }
}
